<phone:PhoneApplicationPage
    x:Class="LyonMag.Poll"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,0,0,0" Background="#AD1F15" Orientation="Horizontal">
            <Image x:Name="imgLogo" Source="Assets/Licons/navBar.png" Margin="-60,0,0,0" Width="600"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,0,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="140"></RowDefinition>
                <RowDefinition Height="80"></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <ProgressBar x:Name="prgs" IsIndeterminate="True" Grid.Row="2" Margin="0,-100,0,0"></ProgressBar>
            <StackPanel Grid.Row="0" Background="#8E8E8E">
                <TextBlock Margin="12,10,12,0" VerticalAlignment="Center" x:Name="txtPollQuestion" TextWrapping="Wrap" Foreground="Black" FontSize="25" HorizontalAlignment="Center" ></TextBlock>
            </StackPanel>
            <StackPanel Grid.Row="1" Orientation="Horizontal"  Background="#2B2B2B" Margin="0,0,0,0">
                <Button Content="Voter" Foreground="Black" BorderBrush="Gray" x:Name="btnVote" Click="btnVote_Click" Background="#CECECE" Width="200" Margin="20,0,0,0"></Button>
                <Button Content="Resultat" Foreground="Black" BorderBrush="Gray" x:Name="btnResult" Click="btnResult_Click" Background="#CECECE" Width="200" Margin="10,0,0,0"></Button>
            </StackPanel>
            <StackPanel Grid.Row="2" Orientation="Vertical">
                <RadioButton Foreground="Black" x:Name="Opt1a" Checked="Opt1_Checked" GroupName="Answer" Background="Black" >
                    <TextBlock x:Name="Opt1" Foreground="Black"   TextWrapping="Wrap"></TextBlock>
                </RadioButton>
                <RadioButton  Foreground="Black" x:Name="Opt2a"  Checked="Opt2_Checked" GroupName="Answer" Background="Black" >
                    <TextBlock x:Name="Opt2" Foreground="Black"  TextWrapping="Wrap"></TextBlock>
                </RadioButton>
                <RadioButton   Foreground="Black" x:Name="Opt3a" Checked="Opt3_Checked" GroupName="Answer" Background="Black" >
                    <TextBlock  x:Name="Opt3" Foreground="Black"  TextWrapping="Wrap"></TextBlock>
                </RadioButton>
                <RadioButton  Foreground="Black" x:Name="Opt4a" Checked="Opt4_Checked" GroupName="Answer" Background="Black" >
                    <TextBlock x:Name="Opt4"  Foreground="Black"  TextWrapping="Wrap"></TextBlock>
                </RadioButton>
            </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>